Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enforce generation of docs for commands #112

Merged
merged 3 commits into from
Jan 13, 2022

Conversation

f0rmiga
Copy link
Contributor

@f0rmiga f0rmiga commented Jan 11, 2022

Whenever we create a new top-level command, the feature being introduced in this PR will keep the docs up-to-date.
This will avoid future mistakes e.g. the one that e4a9dd4 fixes.

@f0rmiga f0rmiga requested a review from mattem January 11, 2022 09:16
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
@f0rmiga f0rmiga force-pushed the f0rmiga/enforce-docs-commands branch from 79fa926 to 4a7f484 Compare January 11, 2022 09:19
Copy link
Member

@mattem mattem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not going to block, but I feel the implementation / naming confuses me a little. As in, it outputs text that has doc and structure of a bzl file, but requires the output to be redirected to a file - what else would someone do with it?

Perhaps if it was named generate_bzl_command_list or something more specific? I dunno 🤷

cmd/docgen/main.go Outdated Show resolved Hide resolved
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
@f0rmiga
Copy link
Contributor Author

f0rmiga commented Jan 13, 2022

@mattem Yeah, makes sense the naming (fixed in 7f690ce). As for the command printing the bzl file instead of saving it as a file directly, I don't see any issue. Bash does this easier and the command is only used with a genrule anyways.

@f0rmiga f0rmiga merged commit f17a4e7 into main Jan 13, 2022
@f0rmiga f0rmiga deleted the f0rmiga/enforce-docs-commands branch January 13, 2022 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants